<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="cn.chinaunicom.sdsi.frm.sys.R.ProResource"%>
<c:set var="appPath" scope="page" value="<%=ProResource.getAppPath() %>"/>
<c:set var="appName" scope="page" value="${pageContext.request.contextPath}"/>
<c:set var="frmPrefix" scope="page" value="${appName}${appPath}"/>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html>
<html lang="zh_CN">
  <head>
  	<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  	<link rel="stylesheet" href="<%=basePath %>/resource/css/style.css"/>
	<script type="text/javascript" src="<%=basePath %>/resource/js/jquery/jquery-1.12.4.min.js"></script>
	<script type="text/javascript">
		
		var appPath = "${appPath}";	
		var appName = '${appName}';
		var frmPrefix = "${frmPrefix}";
		
		//移动端登录标志位
		var mobile = "Y";
		
		$(document).ready(function(){
// 			$("#signin").click(function(){
// 				var account = $("#account").val();
// 				var passwd = $("#passwd").val();
// 				$.post("${frmPrefix}/signinController/shiroSignin.action",
// 						{account:account,passwd:passwd,attrg:mobile},
// 						function(data){
// 							if(data.signin){
// 								window.location.href = "${frmPrefix}/info/infoIndex.action";
// 							}else{
// 								alert(data.errorInfo);
// 							}
// 						}
// 				);
// 			});
		});
	</script>
	<style type="text/css">
		::-moz-placeholder { color: #fff; }
		::-webkit-input-placeholder { color:#fff; }
		:-ms-input-placeholder { color:#fff; }
	</style>
  </head>
<body class="loginbodybg">
<div class="loginbg">
	<h1 class="loginh">资源共享服务平台</h1>
	<center>
      <img src="<%=basePath %>/resource/img/loginpic.png" title="" alt="" >
    </center>
    <div class="loginbox">
    	<form action="${frmPrefix}/signinController/shiroSignin.action" method="post">
    	<input type="text" class="loginInput login-icon-user" placeholder="用户名/邮箱" name="account" id="account"/>
    	<input type="password" class="loginInput login-icon-key" placeholder="密码" name="passwd" id="passwd"/>
    	<input type="hidden" value="Y" name="attrg">
        <button type="submit" class="loginbtn" id="signin">登录</button>
        </form>
    </div>
</div>
</body>
</html>
